{% extends "admin/change_list.html" %}
{% load i18n admin_urls static %}

{% block object-tools-items %}
    <li>
        <a href="{% url 'admin:api_manager_testcase_execute_all' %}" class="btn">
            执行所有测试用例
        </a>
    </li>
    {{ block.super }}
{% endblock %}

{% block content %}
    <div class="module filtered" style="margin-bottom: 10px; padding: 8px;">
        <div class="summary" style="margin: 0;">
            <h3 style="margin: 0 0 8px 0;">测试用例统计</h3>
            <ul style="margin: 0; padding-left: 20px;">
                <li>总用例数：{{ cl.result_list|length }}</li>
                <li>启用用例数：{{ active_count }}</li>
                <li>禁用用例数：{{ inactive_count }}</li>
            </ul>
        </div>
    </div>
    {{ block.super }}
{% endblock %} 